
import request from '@/utils/request'
import {projectApiUrl} from '../config'

/**
 * 查询企业主要管理人员
 * @param parameter
 */
export function getcompanyLeader(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/business_management',
    method: 'get',
    params: parameter
  })
}




/**
 * 新增企业主要管理人员
 * @param parameter
 */
export function addcompanyLeader(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/business_management',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除企业主要管理人员
 * @param parameter
 */
export function deletecompanyLeader(data){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/business_management-delete',
    method: 'post',
    data: data
  })
}


/**
 * 编辑企业主要管理人员
 * @param parameter
 */
export function editcompanyLeader(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/business_management/update',
    method: 'post',
    data: parameter
  })
}



/**
 * 查询近三年主要业绩
 * @param parameter
 */
export function getAchievementList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/achievement',
    method: 'get',
    params: parameter
  })
}

/**
 * 新增近三年主要业绩
 * @param parameter
 */
export function addAchievementList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/achievement',
    method: 'post',
    data: parameter
  })
}


/**
 * 编辑近三年主要业绩
 * @param parameter
 */
export function editAchievementList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/achievement/update',
    method: 'post',
    data: parameter
  })
}


/**
 * 删除近三年主要业绩
 * @param parameter
 */
export function deleteAchievementList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/achievement-delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询合作三年以上的班组
 * @param parameter
 */
export function getTeamList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/threeyears_team',
    method: 'get',
    params: parameter
  })
}


/**
 * 新增合作三年以上的班组
 * @param parameter
 */
export function addTeamList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/threeyears_team',
    method: 'post',
    data: parameter
  })
}


/**
 * 编辑合作三年以上的班组
 * @param parameter
 */
export function editTeamList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/threeyears_team/update',
    method: 'post',
    data: parameter
  })
}


/**
 * 删除合作三年以上的班组
 * @param parameter
 */
export function deleteTeamList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/threeyears_team-delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询合作三年以上的班组
 * @param parameter
 */
export function getConstructionList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/construction_project',
    method: 'get',
    params: parameter
  })
}

/**
 * 新增合作三年以上的班组
 * @param parameter
 */
export function addConstructionList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/construction_project',
    method: 'post',
    data: parameter
  })
}
/**
 * 编辑合作三年以上的班组
 * @param parameter
 */
export function editConstructionList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/construction_project/update',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除合作三年以上的班组
 * @param parameter
 */
export function deleteConstructionList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/construction_project-delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询相关方调查评价
 * @param parameter
 */
export function getInvestigationList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/investigation',
    method: 'get',
    params: parameter
  })
}

/**
 * 新增相关方调查评价
 * @param parameter
 */
export function addInvestigationList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/investigation',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑相关方调查评价
 * @param parameter
 */
export function editInvestigationList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/investigation/update',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除相关方调查评价
 * @param parameter
 */
export function deleteInvestigationList(parameter){
  return request({
    url: projectApiUrl + '/subcontractors/investigate/labour_services_information/investigation-delete',
    method: 'post',
    data: parameter
  })
}


